Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add encryption support #102

Merged
merged 3 commits into from
Oct 16, 2023
Merged

Add encryption support #102

merged 3 commits into from
Oct 16, 2023

Conversation

leemaguire
Copy link
Contributor

@leemaguire leemaguire commented Oct 9, 2023

  • The Sync metadata Realm is now encrypted by default on Apple platforms unless the REALM_DISABLE_METADATA_ENCRYPTION environment variable is set.
    To enable encryption on the metadata Realm on other platforms you must set an encryption key on realm::App::configuration.
std::array<char, 64> example_key = {...};
realm::App::configuration app_config;
app_config.app_id = ...
app_config.metadata_encryption_key = example_key;
auto encrypted_app = realm::App(app_config);
  • Add ability to encrypt a Realm. Usage: realm::config::set_encryption_key(const std::array<char, 64>&).

  • realm::App(const std::string &app_id, const std::optional<std::string> &base_url, const std::optional<std::string> &path, const std::optional<std::map<std::string, std::string>> &custom_http_headers) has been deprecated.
    use realm::App(const realm::App::configuration&); instead.

@leemaguire leemaguire self-assigned this Oct 9, 2023
@leemaguire leemaguire requested a review from jsflax October 11, 2023 14:25
@leemaguire leemaguire marked this pull request as ready for review October 11, 2023 14:25
src/cpprealm/app.cpp Outdated Show resolved Hide resolved
@leemaguire leemaguire merged commit 4acec73 into main Oct 16, 2023
33 of 34 checks passed
@leemaguire leemaguire deleted the lm/encryption branch October 16, 2023 16:26
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants